www.gusucode.com > 24Beta 虚拟主机版 1.0.0 Beta源码程序 > 24Beta 虚拟主机版 1.0.0 Beta源码程序/24Beta-1.0.0-vhost/protected/views/site/atom.php
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xml:lang="<?php echo app()->language;?>" xml:base="<?php echo abu();?>"> <title type="html"><?php echo app()->name . '_' . param('domain');?></title> <subtitle type="text"><?php echo param('domain') . '_' . param('shortdesc');?></subtitle> <updated><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', $posts[0]->update_time);?></updated> <generator uri="<?php echo param('domain');?>" version="1.0"><?php echo param('domain');?></generator> <link rel="alternate" type="text/html" href="<?php echo aurl('site/atom');?>" /> <id><?php echo url('site/atom');?></id> <link rel="self" type="application/atom+xml" href="<?php echo aurl('site/atom');?>" /> <?php foreach ($posts as $p):?> <entry> <author> <name><?php echo $p->postUser;?></name> </author> <id><?php echo $p->aurl;?></id> <title type="html"><![CDATA[<?php echo $p->subject;?>]]></title> <link rel="alternate" type="text/html" href="<?php echo $p->aurl;?>" /> <updated><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', $p->update_time);?></updated> <published><?php echo gmstrftime('%Y-%m-%dT%H:%M:%SZ', $p->post_time);?></published> <category scheme="<?php echo aurl('topic/posts', array('tid'=>$p->topic->id));?>" term="<?php echo $p->topic->name;?>" /> <summary type="html"><![CDATA[<?php echo $p->textSummary;?>]]></summary> <content type="html" xml:base="<?php echo $p->aurl;?>"><![CDATA[<?php echo $p->purifyContent;?>]]></content> </entry> <?php endforeach;?> </feed>